<template>
	<view class="transfer">
		<view class="transfer-container">
			<scroll-view scroll-y="true" class="transfer-container-scroll">
				<view class="transfer-container-scroll-container">
					<view class="box">
						<!-- <view class="transfer-item" :style="{ backgroundColor: current ? '#FFF1CD' : '#FFF'}">
							<view class="transfer-item">
								<view style="margin: 0 23rpx;">
									<image :src="info.headImg"></image>
								</view>
								<view class="transfer-item-title">{{info.userName}}</view>
								<view class="transfer-item-tag" v-text='role'></view>
								<text>{{info.jobName}}</text>
							</view>
						</view> -->
						<view v-for="(item,index) in userList" :key="item.uid">
							<view class="line" :style="{backgroundColor: index===0 ? '#FFF1CD' : '#FFF'}">
								<view class="left">
									<image :src="item.headImg"></image>
								</view>
								<view class="center">
									<view class="name">{{item.userName}}</view>
									<view class="grade"><text>{{item.roleName}}</text></view>
								</view>
								<view class="right">
									<text>{{item.jobName}}</text>
									<radio-group @change="choose" v-show="index!==0">
										<view class="radio">
											<radio color="rgb(251,210,32)" :value="item.uid" :checked="item.uid === current" />
										</view>
										<view>{{item.name}}</view>
									</radio-group>
								</view>
							</view>
							

						</view>
						
					</view>
					
					<view style="position: relative;z-index: 0;"><u-loadmore :status="status" :margin-bottom="200" margin-top="50" @loadmore="more"/></view>
					
				</view>
			</scroll-view>
		</view>
		<view class="transfer-bottom">
			<u-modal v-model="show" :show-cancel-button="true" confirm-color="#FBD220" :content="content" @confirm="onConfirm"></u-modal>
			<button class="transfer-bottom-btn" @click="open">
				确认转让超管
			</button>
		</view>
		<u-toast ref="uToast" />
	</view>
</template>

<script>

</script>
<script src="./transferSuper.js"></script>
<style src="./transferSuper.scss" lang="scss"></style>
